package visual_map

import (
	"cgs-server/server/model"
	"go.mongodb.org/mongo-driver/bson/primitive"
)

// 大屏地图
type Map struct {
	Id primitive.ObjectID	`json:"id" bson:"id"`
	Name string `json:"name" bson:"name"`
	Data string `json:"data" bson:"data"`

	model.TenantModel	`json:",inline" bson:",inline"`
}

func (m *Map) GetId() string {
	return m.Id.Hex()
}

func (m *Map) SetId(id primitive.ObjectID) {
	m.Id = id
}
